package com.ruoyi.orders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orders.mapper.SmartParkingOrderMapper;
import com.ruoyi.orders.domain.SmartParkingOrder;
import com.ruoyi.orders.service.ISmartParkingOrderService;

/**
 * 停车订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class SmartParkingOrderServiceImpl implements ISmartParkingOrderService 
{
    @Autowired
    private SmartParkingOrderMapper smartParkingOrderMapper;

    /**
     * 查询停车订单
     * 
     * @param scOrderId 停车订单主键
     * @return 停车订单
     */
    @Override
    public SmartParkingOrder selectSmartParkingOrderByScOrderId(Long scOrderId)
    {
        return smartParkingOrderMapper.selectSmartParkingOrderByScOrderId(scOrderId);
    }

    /**
     * 查询停车订单列表
     * 
     * @param smartParkingOrder 停车订单
     * @return 停车订单
     */
    @Override
    public List<SmartParkingOrder> selectSmartParkingOrderList(SmartParkingOrder smartParkingOrder)
    {
        return smartParkingOrderMapper.selectSmartParkingOrderList(smartParkingOrder);
    }

    /**
     * 新增停车订单
     * 
     * @param smartParkingOrder 停车订单
     * @return 结果
     */
    @Override
    public int insertSmartParkingOrder(SmartParkingOrder smartParkingOrder)
    {
        return smartParkingOrderMapper.insertSmartParkingOrder(smartParkingOrder);
    }

    /**
     * 修改停车订单
     * 
     * @param smartParkingOrder 停车订单
     * @return 结果
     */
    @Override
    public int updateSmartParkingOrder(SmartParkingOrder smartParkingOrder)
    {
        return smartParkingOrderMapper.updateSmartParkingOrder(smartParkingOrder);
    }

    /**
     * 批量删除停车订单
     * 
     * @param scOrderIds 需要删除的停车订单主键
     * @return 结果
     */
    @Override
    public int deleteSmartParkingOrderByScOrderIds(Long[] scOrderIds)
    {
        return smartParkingOrderMapper.deleteSmartParkingOrderByScOrderIds(scOrderIds);
    }

    /**
     * 删除停车订单信息
     * 
     * @param scOrderId 停车订单主键
     * @return 结果
     */
    @Override
    public int deleteSmartParkingOrderByScOrderId(Long scOrderId)
    {
        return smartParkingOrderMapper.deleteSmartParkingOrderByScOrderId(scOrderId);
    }
}
